import Vue from 'vue'
import Router from 'vue-router'
// import Index from ''
// import Top from '@/pages/top/index'
// import History from '@/pages/history/index'
// import Master from '@/pages/degree/master'
// import HighSchool from '@/pages/degree/highSchool'
// import Undergraduate from '@/pages/degree/undergraduate'
// import Service from '@/pages/services/index'
// import Art from '@/pages/art/index'
// import Ivy from '@/pages/ivy/index'
// import Detail from '@/pages/newsDetail/index'
// import ServiceDetail from '@/pages/serviceDetail/index'
// import StudentDetail from '@/pages/studentDetail/index'
// import ArticleDetail from '@/pages/articleDetail/index'
// import SuccessCase from '@/pages/successCase/index'
// import AdmissionsOfficer from '@/pages/admissionsOfficer/index'
// import ContactUs from '@/pages/contactUs/index'
// import Information from '@/pages/information/index'
// import Asc from '@/pages/backgroundAscension/index'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [{
      path: '/',
      name: 'index',
      component: resolve => require(['@/pages/index/index'], resolve)
    },
    {
      path: '/service/top',
      name: 'top',
      component: resolve => require(['@/pages/top/index'], resolve)
    },
    {
      path: '/history',
      name: 'history',
      component: resolve => require(['@/pages/history/index'], resolve)
    },
    {
      path: '/service/master',
      name: 'master',
      component: resolve => require(['@/pages/degree/master'], resolve)
    },
    {
      path: '/service/highSchool',
      name: 'highSchool',
      component: resolve => require(['@/pages/degree/highSchool'], resolve)
    },
    {
      path: '/service/undergraduate',
      name: 'undergraduate',
      component: resolve => require(['@/pages/degree/undergraduate'], resolve)
    },
    {
      path: '/service',
      name: 'service',
      component: resolve => require(['@/pages/services/index'], resolve)
    },
    {
      path: '/service/art',
      name: 'art',
      component: resolve => require(['@/pages/art/index'], resolve)
    },
    {
      path: '/service/leader_plan',
      name: 'ivy',
      component: resolve => require(['@/pages/ivy/index'], resolve)
    },
    // {
    //   path: '/news/detail/:id',
    //   name: 'detail',
    //   component: resolve => require(['@/pages/newsDetail/index'], resolve)
    // },
    {
      path: '/service/detail/:id',
      name: 'serviceDetail',
      component: resolve => require(['@/pages/serviceDetail/index'], resolve)
    },
    {
      path: '/service/top/detail/:id',
      name: 'serviceTopDetail',
      component: resolve => require(['@/pages/serviceTopDetail/index'], resolve)
    },
    {
      path: '/studentDetail/:id',
      name: 'studentDetail',
      component: resolve => require(['@/pages/studentDetail/index'], resolve)
    },
    {
      path: '/articleDetail/:id',
      name: 'articleDetail',
      component: resolve => require(['@/pages/articleDetail/index'], resolve)
    },
    {
      path: '/success_case/:tabIndex?',
      name: 'successCase',
      component: resolve => require(['@/pages/successCase/index'], resolve)
    },
    {
      path: '/team',
      name: 'admissionsOfficer',
      component: resolve => require(['@/pages/admissionsOfficer/index'], resolve)
    },
    {
      path: '/contact',
      name: 'contactUs',
      component: resolve => require(['@/pages/contactUs/index'], resolve)
    },
    {
      path: '/news',
      name: 'information',
      component: resolve => require(['@/pages/information/index'], resolve)
    },
    {
      path: '/background_ascension',
      name: 'background_ascension',
      component: resolve => require(['@/pages/backgroundAscension/index'], resolve)
    },
  ]
})